home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global wordPath
- set HC to the number of cast "handCursor"
- cursor([HC, HC + 1])
- puppetSprite(2, 1)
- set the foreColor of sprite 2 to 149
- set the backColor of sprite 2 to 255
- repeat with i = 3 to 37
- puppetSprite(i, 1)
- set the foreColor of sprite i to 35
- set the backColor of sprite i to 0
- end repeat
- updateStage()
- set wordPath to "beg"
- put "beg" into field "compoundWord"
- end
-
- on selectWord
- global wordPath
- if the clickOn <> 0 then
- set lastWord to the last word in wordPath
- set thisWord to the name of cast the castNum of sprite the clickOn
- if field "dictionary" contains lastWord & thisWord then
- put lastWord & thisWord into field "compoundWord"
- set the foreColor of sprite the clickOn to 149
- set the backColor of sprite the clickOn to 255
- puppetSound("nice pling.s")
- updateStage()
- put " " & thisWord after wordPath
- if thisWord = "end" then
- repeat with i = 2 to 37
- puppetSprite(i, 0)
- end repeat
- set the foreColor of sprite 2 to 255
- set the backColor of sprite 2 to 0
- puppetSound("Ta Dah!.S")
- continue()
- end if
- else
- if (thisWord = lastWord) and (the number of words in wordPath > 1) then
- set the foreColor of sprite the clickOn to 35
- set the backColor of sprite the clickOn to 0
- puppetSound("Poper.S")
- updateStage()
- set lastNum to the number of words in wordPath
- delete word lastNum of wordPath
- put the last word in wordPath into field "compoundWord"
- else
- puppetSound("Beebit.S")
- updateStage()
- end if
- end if
- end if
- end
-